import { Navigate } from "react-router-dom";
import Home from "../views/home/home";
import Login from "../views/login/login";
import Cai from "../views/cai/cai"
import Zhang from "../views/zhang/zhang"
export default [
  {
    path: "/",
    // 路由重定向, 借助Navigate组件跳转
    element: <Navigate to="/login" replace />,
  },
  {
    path: "/home",
    element: <Home />,
  },
  {
    path: "/login",
    element: <Login />,
  },
  {
    path:'/cai',
    element:<Cai />
  },
  {
    path:'/zhang',
    element:<Zhang />
  }
];
